# -------------------------------------------------
# Project created by QtCreator 2014-01-06T09:29:28
# -------------------------------------------------
win32:QTDIR = $$system("echo %QTDIR%")
unix:QTDIR = $$system(printenv QTDIR)

QT       += core gui declarative
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG +=  qtcommercialchart
CONFIG += console

INCLUDEPATH += $$QTDIR/include/QtCharts

QT += network \
    sql \
    script \
    xml \
    webkit
TARGET = AlarmClient
TEMPLATE = app
unix:OBJECTS_DIR = ./linuxobj
UI_DIR = ./linuxui
MOC_DIR = ./linuxmoc
RCC_DIR = ./linuxrcc
win32 { 
    OBJECTS_DIR = ./winobj
    UI_DIR = ./winui
    MOC_DIR = ./winmoc
    RCC_DIR = ./winrcc
}
CONFIG(debug):DESTDIR = ./debug
CONFIG(release):DESTDIR = ./release
INCLUDEPATH += . \
    common \
    login \
    global \
    database \
    emap \
    event \
    stat \
    picture \
    alarm \
    device \
    log \
    account \
    flux \
    excel \
    sysconfig \
    include \
	..\main_topodll \
	..\main_topodll\GeneratedFiles
		
SOURCES += event/event.cpp \
	event/events.cpp \
	global/EventInstanceSet.cpp \
	main.cpp \
    mainwindow.cpp \
    emap/emapwindow.cpp \
    common/SysCfg.cpp \
    common/domxml.cpp \
    common/BaseObjects.cpp \
    common/BaseObject.cpp \
    login/LoginDialog.cpp \
    common/BaseDialog.cpp \
    global/CommonInstanceSet.cpp \
    global/GlobalInstanceSet.cpp \
    region/Regions.cpp \
    region/Region.cpp \
    common/DbObjects.cpp \
    common/DbObject.cpp \
    database/Database.cpp \
    global.cpp \
    global/RegionInstanceSet.cpp \
    global/DbInstanceSet.cpp \
    global/LoginInstanceSet.cpp \
    stat/statwindow.cpp \
    picture/pie.cpp \
    picture/histogram.cpp \
    picture/curve.cpp \
    alarm/alarmwindow.cpp \
    picture/clock.cpp \
    alarm/Alarms.cpp \
    alarm/Alarm.cpp \
    global/AlarmInstanceSet.cpp \
    alarm/AlarmTypes.cpp \
    alarm/AlarmType.cpp \
    device/devices.cpp \
    picture/rectangle.cpp \
    global/DeviceInstanceSet.cpp \
    log/LogCounts.cpp \
    log/LogCount.cpp \
    global/StatInstanceSet.cpp \
    device/devicewindow.cpp \
    device/devicecolumndialog.cpp \
    device/graphicmodels.cpp \
    device/graphicmodel.cpp \
    account/accounts.cpp \
    account/account.cpp \
    global/AccountInstanceSet.cpp \
    common/md5.cpp \
    flux/fluxs.cpp \
    flux/flux.cpp \
    common/BaseWidget.cpp \
    excel/MyExcel.cpp \
    excel/ExportExcel.cpp \
    excel/BasicExcel.cpp \
    stat/statistics.cpp \
    stat/statistic.cpp \
    device/devicedialog.cpp \
    sysconfig/sysconfigwindow.cpp \
    sysconfig/accountdialog.cpp \
    device/fetchs.cpp \
    device/fetch.cpp \
    device/graphicviews.cpp \
    device/graphicview.cpp \
        device/AlarmTypeEditDialog.cpp \
        device/devicedetaildialog.cpp \
        device/CropDialogOne.cpp \
        device/CropDialogTwo.cpp \
        device/CropHessianDialog.cpp \
    stat/reports.cpp \
    stat/report.cpp \
    alarm/AlarmRules.cpp \
    alarm/AlarmRule.cpp \
    alarm/AlarmLevels.cpp \
    alarm/AlarmLevel.cpp \
    sysconfig/alarmruledialog.cpp \
    device/routers.cpp \
    device/router.cpp \
    sysconfig/routerdialog.cpp \
    sysconfig/fetchdialog.cpp \
    device/devicedetaildialog.cpp \
    alarm/alarmdetaildialog.cpp \
    device/device1.cpp \
    global/AgentInstanceSet.cpp  \
global/AssetInstanceSet.cpp \
global/AuditInstanceSet.cpp \
global/DefectInstanceSet.cpp \
global/RepositoryInstanceSet.cpp \
global/WhitelistitemInstanceSet.cpp \
sysconfig/agentDialog.cpp \
sysconfig/assetDialog.cpp \
sysconfig/powerdialog.cpp\
sysconfig/repositoryDialog.cpp \
agent/Agent.cpp \
agent/Agents.cpp \
asset/Asset.cpp \
asset/Assets.cpp \
assis/assistWindow.cpp \
audit/audit.cpp \
audit/audits.cpp \
corp/corp.cpp \
corp/corps.cpp \
defect/Defect.cpp \
defect/Defects.cpp \
repository/Repositorys.cpp \
repository/repository.cpp \
whitelist/WhiteListItem.cpp \ 
ipscan/ipscanProcess.cpp \ 
ipscan/statProcess.cpp \
whitelist/WhiteLists.cpp  \
qhessian/QHessianMethodCall.cpp \
qhessian/QHessianReturnParser.cpp 

HEADERS += event/event.h \
	event/events.h \
    global/EventInstanceSet.h \
	mainwindow.h \
    emap/emapwindow.h \
    common/domxml.h \
    common/BaseObjects.h \
    common/BaseObject.h \
    common/SysCfg.h \
    login/LoginDialog.h \
    common/BaseDialog.h \
    global/CommonInstanceSet.h \
    global/GlobalInstanceSet.h \
    common/common.h \
    region/Region.h \
    region/Regions.h \
    common/DbObject.h \
    common/DbObjects.h \
    database/Database.h \
    global.h \
    global/RegionInstanceSet.h \
    global/DbInstanceSet.h \
    global/LoginInstanceSet.h \
    stat/statwindow.h \
    picture/histogram.h \
    picture/pie.h \
    picture/curve.h \
    alarm/alarmwindow.h \
    picture/clock.h \
    alarm/Alarm.h \
    alarm/Alarms.h \
    global/AlarmInstanceSet.h \
    alarm/AlarmType.h \
    alarm/AlarmTypes.h \
    device/devices.h \
    picture/rectangle.h \
    global/DeviceInstanceSet.h \
    log/LogCount.h \
    log/LogCounts.h \
    global/StatInstanceSet.h \
    device/devicewindow.h \
    device/devicecolumndialog.h \
    device/graphicmodel.h \
    device/graphicmodels.h \
            device/AlarmTypeEditDialog.h \
        device/devicedetaildialog.h \
        device/CropDialogOne.h \
        device/CropDialogTwo.h \
        device/CropHessianDialog.h \
        device/MyListView.h \
    account/accounts.h \
    account/account.h \
    global/AccountInstanceSet.h \
    common/md5.h \
    flux/flux.h \
    flux/fluxs.h \
    common/BaseWidget.h \
    excel/ExportExcel.h \
    excel/BasicExcel.h \
    excel/MyExcel.h \
    stat/statistics.h \
    stat/statistic.h \
    device/devicedialog.h \
    sysconfig/sysconfigwindow.h \
    sysconfig/accountdialog.h \
    device/fetch.h \
    device/fetchs.h \
    device/graphicview.h \
    device/graphicviews.h \
    stat/report.h \
    stat/reports.h \
    alarm/AlarmRule.h \
    alarm/AlarmRules.h \
    alarm/AlarmLevel.h \
    alarm/AlarmLevels.h \
    sysconfig/alarmruledialog.h \
    device/router.h \
    device/routers.h \
    sysconfig/routerdialog.h \
    sysconfig/fetchdialog.h \
    device/devicedetaildialog.h \
    alarm/alarmdetaildialog.h \
    device/device1.h \
    global/AgentInstanceSet.h \
global/AssetInstanceSet.h \
global/AuditInstanceSet.h \
global/DefectInstanceSet.h \
global/RepositoryInstanceSet.h \
global/WhitelistitemInstanceSet.h \ 
ipscan/ipscanProcess.h \ 
ipscan/statProcess.h \
sysconfig/agentDialog.h \
sysconfig/assetDialog.h \
sysconfig/repositoryDialog.h \
sysconfig/powerdialog.h\
agent/Agent.h \
agent/Agents.h \
asset/Asset.h \
asset/Assets.h \
assis/assistWindow.h \
audit/audit.h \
audit/audits.h \
corp/corp.h \
corp/corps.h \
defect/Defect.h \
defect/Defects.h \
repository/Repository.h \
repository/Repositorys.h \
whitelist/WhiteListItem.h \
whitelist/WhiteLists.h \
qhessian/QHessian.h \
qhessian/QHessianMethodCall.h \
qhessian/QHessianReturnParser.h \
qhessian/QHessianTypes.h 

FORMS += mainwindow.ui \
    emap/emapwindow.ui \
    login/LoginDialog.ui \
    stat/statwindow.ui \
    alarm/alarmwindow.ui \
    device/devicewindow.ui \
    device/devicecolumndialog.ui \
    device/devicedialog.ui \
 device/alarmTypeEdit.ui \
 device/CropDialogOne.ui \
 device/CropDialogTwo.ui \
 sysconfig/sysconfigwindow.ui \
    sysconfig/accountdialog.ui \
    sysconfig/alarmruledialog.ui \
    sysconfig/routerdialog.ui \
    sysconfig/fetchdialog.ui \
    device/devicedetaildialog.ui \
    alarm/alarmdetaildialog.ui \
    sysconfig/agentDialog.ui \
sysconfig/assetDialog.ui \ 
sysconfig/powerDialog.ui \
sysconfig/repositoryDialog.ui \
assistools.ui \
CorpQhessianDialog.ui

RC_FILE = alarmclient.rc
RESOURCES += alarmclient.qrc
unix:LIBS += -L../lib_linux -ldmapi \
        -lmainwindow \
        -devMng
win32:LIBS += -lws2_32 \      
       include/mainwindow.lib  \
       include/devMng.lib \
	   include/dmapi.lib 

